﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using KPIS.GERP.GIMS.MODEL;
using KPIS.GERP.GIMS.IBLL;
using KPIS.GERP.GIMS.DAL;
using KPIS.GERP.GIMS.DALFactory;
using KPIS.DBM;

namespace KPIS.GERP.GIMS.BLL
{
    public class ReceiveBLL
    {
        private static readonly ReceiveDAL dal = new ReceiveDAL();

        public IList<M_IcmReceiveObject> GetReceiveObject(Nullable<int> Sequence)
        {
            return dal.GetReceiveObject(Sequence);
        }

        public DataSet GenReceiveCode()
        {
            return dal.GenReceiveCode();
        }
        public Int32 GetReceiveSeq(string asset_code_start, string asset_code_finish)
        {
            return dal.GetReceiveSeq(asset_code_start, asset_code_finish);
        }
        public void Insert(M_IcmReceiveObject info)
        {
            try
            {
                dal.Insert(info);
            }
            catch
            {
                throw;
            }
        }
        public void Update(M_IcmReceiveObject info)
        {
            try
            {
                dal.Update(info);
            }
            catch
            {
                throw;
            }
        }
        public void Delete(int Sequence, int UpdatedBy)
        {
            try
            {
                dal.Delete(Sequence, UpdatedBy);
            }
            catch
            {
                throw;
            }
        }

    }
}
